package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.pojo.DtsGoodsProduct;
import com.qf.service.ProductService;
import com.qf.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    DtsGoodsProductMapper productMapper;
    @Override
    public int showAllOrderCount() {
        LambdaQueryWrapper<DtsGoodsProduct> queryWrapper=new LambdaQueryWrapper();
        queryWrapper.eq(DtsGoodsProduct::getDeleted,false);
        Integer integer = productMapper.selectCount(queryWrapper);
        return  integer;
    }


}
